package com.itcast.web;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itcast.service.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @Reference
    private HelloService helloService;

    @RequestMapping("say")
    public String say() {
        return helloService.say();
    }
}
